home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / vt100-led.elc.z / vt100-led.elc
Emacs Compiled Lisp  |  1998-10-28  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 37 | 3a 33 30 3a 33 37 20 31 |an 14 07|:30:37 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 76 74 31 30 30 2d |19.0/lis|p/vt100-|
|00000070| 6c 65 64 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |led.el.;|;; emacs|
|00000080| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 33 30 2e 37 | version| 19.30.7|
|00000090| 30 2e 36 2e 0a 3b 3b 3b | 20 62 79 74 65 63 6f 6d |0.6..;;;| bytecom|
|000000a0| 70 20 76 65 72 73 69 6f | 6e 20 46 53 46 20 32 2e |p versio|n FSF 2.|
|000000b0| 31 30 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |10.;;; o|ptimizat|
|000000c0| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|000000d0| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|000000e0| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|000000f0| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000100| 73 20 31 38 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 18...(|if (and |
|00000110| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000120| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000130| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000140| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000150| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|00000160| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|00000170| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 31 |emacs-ve|rsion "1|
|00000180| 39 2e 32 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 |9.29")))|. (er|
|00000190| 72 6f 72 20 22 60 76 74 | 31 30 30 2d 6c 65 64 2e |ror "`vt|100-led.|
|000001a0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|000001b0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 2e 32 39 | for Ema|cs 19.29|
|000001c0| 20 6f 72 20 6c 61 74 65 | 72 22 29 29 0a 0a 0a 23 | or late|r"))...#|
|000001d0| 40 38 35 20 54 68 65 20 | 69 6e 74 65 72 6e 61 6c |@85 The |internal|
|000001e0| 20 73 74 61 74 65 20 6f | 66 20 74 68 65 20 4c 45 | state o|f the LE|
|000001f0| 44 73 2e 20 20 43 68 6f | 69 63 65 73 20 61 72 65 |Ds. Cho|ices are|
|00000200| 20 6e 69 6c 2c 20 74 2c | 20 60 66 6c 61 73 68 2e | nil, t,| `flash.|
|00000210| 0a 45 6c 65 6d 65 6e 74 | 20 30 20 69 73 20 6e 6f |.Element| 0 is no|
|00000220| 74 20 75 73 65 64 2e 1f | 0a 28 64 65 66 76 61 72 |t used..|.(defvar|
|00000230| 20 6c 65 64 2d 73 74 61 | 74 65 20 28 6d 61 6b 65 | led-sta|te (make|
|00000240| 2d 76 65 63 74 6f 72 20 | 35 20 6e 69 6c 29 20 28 |-vector |5 nil) (|
|00000250| 23 24 20 2e 20 34 36 38 | 29 29 0a 23 40 31 34 20 |#$ . 468|)).#@14 |
|00000260| 46 6c 61 73 68 20 4c 45 | 44 20 6c 2e 1f 0a 28 64 |Flash LE|D l...(d|
|00000270| 65 66 61 6c 69 61 73 20 | 27 6c 65 64 2d 66 6c 61 |efalias |'led-fla|
|00000280| 73 68 20 23 5b 28 6c 29 | 20 22 08 09 c2 49 88 c3 |sh #[(l)| "...I..|
|00000290| 20 87 22 20 5b 6c 65 64 | 2d 73 74 61 74 65 20 6c | ." [led|-state l|
|000002a0| 20 66 6c 61 73 68 20 6c | 65 64 2d 75 70 64 61 74 | flash l|ed-updat|
|000002b0| 65 5d 20 33 20 28 23 24 | 20 2e 20 36 30 38 29 5d |e] 3 (#$| . 608)]|
|000002c0| 29 0a 23 40 36 38 20 54 | 75 72 6e 20 6f 66 66 20 |).#@68 T|urn off |
|000002d0| 76 74 31 30 30 20 6c 65 | 64 20 6e 75 6d 62 65 72 |vt100 le|d number|
|000002e0| 20 4c 2e 20 20 57 69 74 | 68 20 6e 6f 20 61 72 67 | L. Wit|h no arg|
|000002f0| 75 6d 65 6e 74 2c 20 74 | 75 72 6e 20 74 68 65 6d |ument, t|urn them|
|00000300| 20 61 6c 6c 20 6f 66 66 | 2e 1f 0a 28 64 65 66 61 | all off|...(defa|
|00000310| 6c 69 61 73 20 27 6c 65 | 64 2d 6f 66 66 20 23 5b |lias 'le|d-off #[|
|00000320| 28 26 6f 70 74 69 6f 6e | 61 6c 20 6c 29 20 22 08 |(&option|al l) ".|
|00000330| 83 0e 00 09 c2 08 21 c3 | 49 88 82 13 00 c4 09 c3 |......!.|I.......|
|00000340| 5c 22 88 c5 20 87 22 20 | 5b 6c 20 6c 65 64 2d 73 |\".. ." |[l led-s|
|00000350| 74 61 74 65 20 70 72 65 | 66 69 78 2d 6e 75 6d 65 |tate pre|fix-nume|
|00000360| 72 69 63 2d 76 61 6c 75 | 65 20 6e 69 6c 20 66 69 |ric-valu|e nil fi|
|00000370| 6c 6c 61 72 72 61 79 20 | 6c 65 64 2d 75 70 64 61 |llarray |led-upda|
|00000380| 74 65 5d 20 33 20 28 23 | 24 20 2e 20 37 31 31 29 |te] 3 (#|$ . 711)|
|00000390| 20 22 50 22 5d 29 0a 23 | 40 31 36 20 54 75 72 6e | "P"]).#|@16 Turn|
|000003a0| 20 6f 6e 20 4c 45 44 20 | 6c 2e 1f 0a 28 64 65 66 | on LED |l...(def|
|000003b0| 61 6c 69 61 73 20 27 6c | 65 64 2d 6f 6e 20 23 5b |alias 'l|ed-on #[|
|000003c0| 28 6c 29 20 22 08 09 c2 | 49 88 c3 20 87 22 20 5b |(l) "...|I.. ." [|
|000003d0| 6c 65 64 2d 73 74 61 74 | 65 20 6c 20 74 20 6c 65 |led-stat|e l t le|
|000003e0| 64 2d 75 70 64 61 74 65 | 5d 20 33 20 28 23 24 20 |d-update|] 3 (#$ |
|000003f0| 2e 20 39 32 34 29 5d 29 | 0a 23 40 35 39 20 55 70 |. 924)])|.#@59 Up|
|00000400| 64 61 74 65 20 74 68 65 | 20 74 65 72 6d 69 6e 61 |date the| termina|
|00000410| 6c 27 73 20 4c 45 44 73 | 20 74 6f 20 72 65 66 6c |l's LEDs| to refl|
|00000420| 65 63 74 20 74 68 65 20 | 69 6e 74 65 72 6e 61 6c |ect the |internal|
|00000430| 20 73 74 61 74 65 2e 1f | 0a 28 64 65 66 61 6c 69 | state..|.(defali|
|00000440| 61 73 20 27 6c 65 64 2d | 75 70 64 61 74 65 20 23 |as 'led-|update #|
|00000450| 5b 6e 69 6c 20 22 c0 c1 | c2 1b 1c 1d 0b c6 55 84 |[nil "..|......U.|
|00000460| 36 00 0e 07 0b 48 89 1e | 08 c9 3d 83 5c 22 00 0d |6....H..|..=.\"..|
|00000470| ca cb 0b 21 51 15 82 2e | 00 0e 08 83 2e 00 5c 66 |...!Q...|......\f|
|00000480| ca cb 0b 21 51 14 29 0b | 54 89 13 82 07 00 5c 66 |...!Q.).|T.....\f|
|00000490| cc 0d cd 52 14 ce 5c 66 | 21 2b 87 22 20 5b 22 1b |...R..\f|!+." [".|
|000004a0| 5b 3f 30 22 20 22 1b 5b | 30 22 20 31 20 6c 20 6f |[?0" ".[|0" 1 l o|
|000004b0| 20 66 20 35 20 6c 65 64 | 2d 73 74 61 74 65 20 73 | f 5 led|-state s|
|000004c0| 20 66 6c 61 73 68 20 22 | 3b 22 20 69 6e 74 2d 74 | flash "|;" int-t|
|000004d0| 6f 2d 73 74 72 69 6e 67 | 20 22 71 22 20 22 74 22 |o-string| "q" "t"|
|000004e0| 20 73 65 6e 64 2d 73 74 | 72 69 6e 67 2d 74 6f 2d | send-st|ring-to-|
|000004f0| 74 65 72 6d 69 6e 61 6c | 5d 20 35 20 28 23 24 20 |terminal|] 5 (#$ |
|00000500| 2e 20 31 30 32 32 29 5d | 29 0a 28 70 72 6f 76 69 |. 1022)]|).(provi|
|00000510| 64 65 20 28 71 75 6f 74 | 65 20 76 74 31 30 30 2d |de (quot|e vt100-|
|00000520| 6c 65 64 29 29 0a | |led)). | |
+--------+-------------------------+-------------------------+--------+--------+